Wrong perspective is showing in Eclipse plugin project [closed]
Posted
by
Arun Kumar Choudhary
on Programmers
See other posts from Programmers
or by Arun Kumar Choudhary
Published on 2012-10-23T06:56:23Z
Indexed on
2012/10/23
11:18 UTC
Read the original article
Hit count: 545
I am working in Eclipse Modeling Framework (Eclipse plugin development) in my project the tool(project i am working) provides three perspectives.
1.Accelerator Analyst perspective 2.Contract Validation and 3.Underwriter rules Editor... By default it starts with Contract validation perspective (As we define it within the plugin_customization.ini). However after switching to other perspective does not change the perspective shown...
As all perspective (Class, Id and Name) is define only inside Plugin.XML as it is the task of org.eclipse.ui.perspective
that that perspective name should be come forefront. Out of 10 7 times it is working fine but I am not getting why this is not working in that 3 cases. I am pasting my plugin.XML file
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
id="RuleEditor.application"
name="Accelerator Tooling"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="com.csc.fs.underwriting.product.UnderWritingApplication">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="com.csc.fs.underwriting.product.ContractValidationPerspective"
icon="icons/javadevhov_obj.gif"
id="com.csc.fs.underwriting.product.ContractValidationPerspective"
name="Contract Validation">
</perspective>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="com.csc.fs.underwriting.product.UnderwritingPerspective"
icon="icons/javadevhov_obj.gif"
id="com.csc.fs.underwriting.product.UnderwritingPerspective"
name="Underwriting">
</perspective>
</extension>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="com.csc.fs.nba.underwriting.application.RuleEditor.application"
name="Rule Configurator Workbench"
description="%AppName">
<property
name="introTitle"
value="Welcome to Accelerator Tooling"/>
<property
name="introVer"
value="%version"/>
<property
name="introBrandingImage"
value="product:csclogo.png"/>
<property
name="introBrandingImageText"
value="CSC FSG"/>
<property
name="preferenceCustomization"
value="plugin_customization.ini"/>
<property
name="appName"
value="Rule Configurator Workbench">
</property>
</product>
</extension>
<extension
point="org.eclipse.ui.intro">
<intro
class="org.eclipse.ui.intro.config.CustomizableIntroPart"
icon="icons/Welcome.gif"
id="com.csc.fs.nba.underwriting.intro"/>
<introProductBinding introId="com.csc.fs.nba.underwriting.intro"
productId="com.csc.fs.nba.underwriting.application.product"/>
<intro
class="org.eclipse.ui.intro.config.CustomizableIntroPart"
id="com.csc.fs.nba.underwriting.application.intro">
</intro>
<introProductBinding
introId="com.csc.fs.nba.underwriting.application.intro"
productId="com.csc.fs.nba.underwriting.application.product">
</introProductBinding>
</extension>
<extension
name="Accelerator Tooling"
point="org.eclipse.ui.intro.config">
<config
content="$nl$/intro/introContent.xml"
id="org.eclipse.platform.introConfig.mytest"
introId="com.csc.fs.nba.underwriting.intro">
<presentation home-page-id="news">
<implementation
kind="html"
os="win32,linux,macosx"
style="$nl$/intro/css/shared.css"/>
</presentation>
</config>
<config
content="introContent.xml"
id="com.csc.fs.nba.underwriting.application.introConfigId"
introId="com.csc.fs.nba.underwriting.application.intro">
<presentation
home-page-id="root">
<implementation
kind="html"
os="win32,linux,macosx"
style="content/shared.css">
</implementation>
</presentation>
</config>
</extension>
<extension
point="org.eclipse.ui.intro.configExtension">
<theme
default="true"
id="org.eclipse.ui.intro.universal.circles"
name="%theme.name.circles"
path="$nl$/themes/circles"
previewImage="themes/circles/preview.png">
<property name="introTitle"
value="Accelerator Tooling"/>
<property
name="introVer"
value="%version"/>
</theme>
</extension>
<extension
point="org.eclipse.ui.ide.resourceFilters">
<filter
pattern="*.dependency"
selected="true"/>
<filter
pattern="*.producteditor"
selected="true"/>
<filter
pattern="*.av"
selected="true"/>
<filter
pattern=".*"
selected="true"/>
</extension>
<extension
point="org.eclipse.ui.splashHandlers">
<splashHandler
class="com.csc.fs.nba.underwriting.application.splashHandlers.InteractiveSplashHandler"
id="com.csc.fs.nba.underwriting.application.splashHandlers.interactive">
</splashHandler>
<splashHandler
class="com.csc.fs.underwriting.application.splashHandlers.InteractiveSplashHandler"
id="com.csc.fs.underwriting.application.splashHandlers.interactive">
</splashHandler>
<splashHandlerProductBinding
productId="com.csc.fs.nba.underwriting.application"
splashId="com.csc.fs.underwriting.application.splashHandlers.interactive">
</splashHandlerProductBinding>
</extension>
<extension
id="com.csc.fs.pa.security"
point="com.csc.fs.pa.security.implementation.secure">
<securityImplementation
class="com.csc.fs.pa.security.PASecurityImpl">
</securityImplementation>
</extension>
<extension
id="productApplication.security.pep"
name="com.csc.fs.pa.producteditor.application.security.pep"
point="com.csc.fs.pa.security.implementation.authorize">
<authorizationManager
class="com.csc.fs.pa.security.authorization.PAAuthorizationManager">
</authorizationManager>
</extension>
<extension
point="org.eclipse.ui.editors">
<editor
class="com.csc.fs.underwriting.product.editors.PDFViewer"
extensions="pdf"
icon="icons/pdficon_small.gif"
id="com.csc.fs.pa.producteditor.application.editors.PDFViewer"
name="PDF Viewer">
</editor>
</extension>
<extension
point="org.eclipse.ui.views">
<category
id="com.csc.fs.pa.application.viewCategory"
name="%category">
</category>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category
id="com.csc.fs.pa.application.newWizardCategory"
name="%category">
</category>
<category
id="com.csc.fs.pa.application.newWizardInitialize"
name="%initialize"
parentCategory="com.csc.fs.pa.application.newWizardCategory">
</category>
</extension>
<extension
point="com.csc.fs.pa.common.usability.addNewCategory">
<addNewCategoryId
id="com.csc.fs.pa.application.newWizardCategory">
</addNewCategoryId>
</extension>
<!--extension
point="org.eclipse.ui.activities">
<activity
description="View Code Generation Option"
id="com.csc.fs.pa.producteditor.application.viewCodeGen"
name="ViewCodeGen">
</activity>
<activityPatternBinding
activityId="com.csc.fs.pa.producteditor.application.viewCodeGen"
pattern="com.csc.fs.pa.bpd.vpms.codegen/com.csc.fs.pa.bpd.vpms.codegen.bpdCodeGenActionId">
</activityPatternBinding> Add New Product Definition Extension
</extension-->
</plugin>
class="com.csc.fs.underwriting.product.editors.PDFViewer" extensions="pdf" icon="icons/pdficon_small.gif" id="com.csc.fs.pa.producteditor.application.editors.PDFViewer" name="PDF Viewer"> </editor> </extension> <extension point="org.eclipse.ui.views"> <category id="com.csc.fs.pa.application.viewCategory" name="%category"> </category> </extension> <extension point="org.eclipse.ui.newWizards"> <category id="com.csc.fs.pa.application.newWizardCategory" name="%category"> </category> <category id="com.csc.fs.pa.application.newWizardInitialize" name="%initialize" parentCategory="com.csc.fs.pa.application.newWizardCategory"> </category> </extension> <extension point="com.csc.fs.pa.common.usability.addNewCategory"> <addNewCategoryId id="com.csc.fs.pa.application.newWizardCategory"> </addNewCategoryId> </extension> <!--extension point="org.eclipse.ui.activities"> <activity description="View Code Generation Option" id="com.csc.fs.pa.producteditor.application.viewCodeGen" name="ViewCodeGen"> </activity> <activityPatternBinding activityId="com.csc.fs.pa.producteditor.application.viewCodeGen" pattern="com.csc.fs.pa.bpd.vpms.codegen/com.csc.fs.pa.bpd.vpms.codegen.bpdCodeGenActionId"> </activityPatternBinding> Add New Product Definition Extension </extension--> </plugin> Inside each class(the qualified classes in above xml) i did only hide and show the view according to perspective and that is working very fine..
Please provide any method that Eclipse provide so that I can override it in each classed so that it can work accordingly.
© Programmers or respective owner